package com.project.srtp.secure.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

/**
 * @author 曹行阳
 * @version 0.1
 * @date 2025/6/11 11:18
 * Database entity for a compliance rule.
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_compliance_rule")
public class ComplianceRuleDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String ruleName;
    private String description;
    private String feelExpression; // FEEL格式规则
    private String dfaDefinition; // ComplexDfa的JSON
    private Boolean Active;
    private Instant createdAt;
    private Instant updatedAt;
}
